package com.adinnet.admin.course.mapper;

import com.adinnet.admin.course.model.Course;
import com.adinnet.admin.course.model.vo.CourseResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程表 Mapper 接口
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-11
 */
public interface CourseMapper extends BaseMapper<Course> {

    void updateStatus(@Param("courseId") Integer courseId);

    List<CourseResp> courseList(Page<CourseResp> objectPage, @Param("keyword") String keyword);
}
